package com.hadwinling.blog.service;

import com.hadwinling.blog.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author HadwinLing
 * @version V1.0
 * @Package com.hadwinling.blog.service
 * @date 2020/8/19 8:12
 */
public interface AdminService {


    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    Admin selectOneByAdminnameAndPasswordAndState(String adminname, String password, int state);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    List<Admin> selectByAdminname(String adminname);

    List<Admin> selectByTell(String tell);

    List<Admin> selectByAdminnameAndPassword(String adminname, String password);

    Admin selectOneByAdminnameAndPassword(String adminname, String password);

    int updatePhotoById(String updatedPhoto, Integer id);

    int updatePasswordById(String updatedPassword, Integer id);

    Admin selectOneByAdminnameAndPasswordAndIsadminAndState(String adminname,String password,Integer isadmin,Integer state);

}



